#include <stdio.h>
int main(){
    int x;
    int t = x;
    printf("%d",x);
    scanf("%d",&x);
    int a = 1;
    while(t > 9){
        t /= 10;
        a *= 10;
    }
    printf("%d\n",a);
    do{
        int d = x / a;
        x %= a;
        a /=10;
        printf("%d \n",d);
    }while(a>0);
    return 0;
}